package com.lzj.demo.design.decorator;

import org.springframework.web.servlet.HandlerInterceptor;

/**
 * HandlerInterceptor:抽象构件角色:定义抽象接口
 * SsoInterceptor:具体构件角色:实现抽象接口，可以是一组
 * */
public class SsoInterceptor implements HandlerInterceptor {
    public boolean preHandle(String flag){
        return flag.equals("success");//模拟校验
    }
}
